import ajax from './../../config/axios'
import Mock from 'mockjs'
import resource from './data.json'
//引入mockjs
//使用mockjs模拟数据
Mock.mock('/seller', (req, res) => {
    return {
    	seller:resource.seller,
    	errno:0
    }
    
})
Mock.mock('/goods', (req, res) => {
    return {
      goods:resource.goods,
    	errno:0
    }
    
})
Mock.mock('/ratings', (req, res) => {
    return {
      ratings:resource.ratings,
    	errno:0
    }
    
})



export default {
	seller(params){
		return ajax("/seller",params);
	},
	goods(params){
		return ajax("/goods",params);
	},
	ratings(params){
		return ajax("/ratings",params);
	},
}
